package com.mt.channel.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import com.mt.channel.api.service.IChannelApplyDropCourseService;
import com.mt.channel.entity.ChannelApplyDropCourseEntity;
import com.mt.common.PagerInfo;
import com.mt.common.ServiceResult;
@CrossOrigin
@RestController
public class ChannelApplyDropCourseController {

    @Autowired
    IChannelApplyDropCourseService channelApplyDropCourseService;

    @GetMapping("/channelApplyDropCourse/findList")
    public ServiceResult<List<ChannelApplyDropCourseEntity>> findList(Map<String, Object> params,
            PagerInfo<?> pagerInfo) {
        return channelApplyDropCourseService.findList(params, pagerInfo);
    }

    @PostMapping("/channelApplyDropCourse/doInsert")
    public ServiceResult<Integer> doInsert(ChannelApplyDropCourseEntity channelApplyDropCourseEntity) {
        return channelApplyDropCourseService.doInsert(channelApplyDropCourseEntity);
    }
}
